<div class="mall-3-left">
    <ul>
        <?php if(!empty($category)){ foreach($category as $k=>$v){?>
        <li>
            <a href="<?=url('index/goods/goodsList',['cat_id'=>$v['id']])?>"><span><?=$v['name']?></span></a>
            <ul class="mall-3-left-1">
                <!--
                <li class="mall-3-left-1-1 clearfix">
                    <a href="#" class="clearfix"><span>品牌名称</span><strong></strong></a>
                    <a href="#" class="clearfix"><span>品牌名称</span><strong></strong></a>
                </li>
                -->
                <?php if(!empty($v['children'])){ foreach($v['children'] as $k2=>$v2){?>
                <li class="mall-3-left-1-2 clearfix">
                    <h2><a href="<?=url('index/goods/goodsList',['cat_id'=>$v2['id']])?>"><span><?=$v2['name']?></span></a></h2>
                    <div class="clearfix">
                        <?php if(!empty($v2['children'])){ foreach($v2['children'] as $k3=>$v3){?>
                        <a href="<?=url('index/goods/goodsList',['cat_id'=>$v3['id']])?>"><span><?=$v3['name']?></span></a>
                        <?php }} ?>
                    </div>
                    <a href="#">更多</a>
                </li>
                <?php }} ?>
            </ul>
        </li>
        <?php }} ?>

    </ul>
</div>